package org.example.backend.repository;

import org.example.backend.entity.User;
import org.example.backend.entity.VisitHistory;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface VisitHistoryRepository extends JpaRepository<VisitHistory, Long> {
    List<VisitHistory> findByUserOrderByVisitTimeDesc(User user);
    List<VisitHistory> findTop10ByUserOrderByVisitTimeDesc(User user);
} 